(function() {"use strict";var __module = CC_EDITOR ? module : {exports:{}};var __filename = 'preview-scripts/assets/resources/Script/Ssg/API/QQ/QQLogin.js';var __require = CC_EDITOR ? function (request) {return cc.require(request, require);} : function (request) {return cc.require(request, __filename);};function __define (exports, require, module) {"use strict";
cc._RF.push(module, '24c5cNGzEtHHLtueSVmOS3i', 'QQLogin', __filename);
// Script/Ssg/API/QQ/QQLogin.js

"use strict";

var QQLogin = cc.Class({

    statics: {

        startLogin: function startLogin(callback) {
            var openId = GameStatusInfo.openId;
            UserInfo.openId = openId;

            BK.MQQ.Account.getNick(openId, function (openID, nickName) {
                UserInfo.userName = nickName;
                UserInfo.userImg = openID; //QQ玩一玩直接通过openID去取头像

                var systemInfo = BK.getSystemInfoSync();
                UserInfo.userSex = systemInfo.sex;
                callback(true);
            });
        }
    }
});

module.exports = QQLogin;

cc._RF.pop();
        }
        if (CC_EDITOR) {
            __define(__module.exports, __require, __module);
        }
        else {
            cc.registerModuleFunc(__filename, function () {
                __define(__module.exports, __require, __module);
            });
        }
        })();
        //# sourceMappingURL=QQLogin.js.map
        